package com.pds.web.industry.controller;

import com.pds.common.core.controller.BaseController;
import com.pds.common.core.domain.R;
import com.pds.web.industry.service.IndustryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/industry")
public class IndustryController extends BaseController {

    @Autowired
    private IndustryService industryService;

    @GetMapping("/list")
    public R<Map> listIndustry(){
        Map result = industryService.selectList();
        return R.ok(result);
    }
}
